package java8_28.oop.Javatest_1;

public class Car {
    private String colour;
    public String brand;
    public Car(String colour,String brand){
        this.brand=brand;
        this.colour=colour;
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }
    public void start(){
        System.out.println("启动");
    }
    public void quicken(){
        System.out.println("加速");
    }
    public void brake(){
        System.out.println("刹车");
    }
}
